package ch.netcetera.planningpoker.client.ui.events;

import com.google.web.bindery.event.shared.Event;

public class UserListChangedEvent extends Event<UserListChangedEventHandler> {
    
    public static final Type<UserListChangedEventHandler> TYPE = new Type<UserListChangedEventHandler>();
    private final Long gameId;

    public UserListChangedEvent(Long gameId) {
        this.gameId = gameId;
    }
    
    @Override
    public Event.Type<UserListChangedEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(UserListChangedEventHandler handler) {
        handler.onUserListChanged(this);
    }

    public Long getGameId() {
        return gameId;
    }


}
